#include "currencyarea.h"
#include "ui_currencyarea.h"

CurrencyArea::CurrencyArea(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::CurrencyArea)
{
    ui->setupUi(this);
    ui->checkBox->setChecked(SettingParser::getInstance()->getValue("enter").toInt());
}

CurrencyArea::~CurrencyArea()
{
    delete ui;
}

void CurrencyArea::on_checkBox_stateChanged(int arg1)
{
    SettingParser::getInstance()->setValue("enter",QString::number(arg1));
}
